<script>
	import {
		baseUrl
	} from "@/utils/url.js"
	export default {
		onLaunch: function() {
			console.log('App Launch')
			// #ifdef APP-PLUS
			var aj = plus.runtime.arguments
			if(aj!=''){
				console.log('启动参数',aj)
			}
			// #endif
			
		},
		onShow: function() {
			// #ifdef APP-PLUS
			
			// 获取本机支持的生物认证方式
			uni.checkIsSupportSoterAuthentication({
				success(res) {
					// console.log('成功', res);
					let string = res.supportMode.join(',')
					if (string.indexOf('fingerPrint') > -1) {
						uni.setStorageSync('iszhiwen', true)
					}
					if (string.indexOf('facial') > -1) {
						uni.setStorageSync('ismr', true)
					}
				},
				fail(err) {
					console.log('失败', err);
				},
				complete(res) {
					// console.log('结束', res);
				}
			})
			// 检查手机是否录入过指纹
			uni.checkIsSoterEnrolledInDevice({
				checkAuthMode: 'fingerPrint',
				success(res) {
					// console.log('成功', res);
					if (res.isEnrolled == true) {
						uni.setStorageSync('isEnrolled', true)
					}
				},
				fail(err) {
					console.log('失败', err);
				}
			})
			// #endif
			
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods: {
		}
	}
</script>

<style lang="scss">
	@import "uview-ui/index.scss";
	/*每个页面公共css */
</style>
